<%@ page contentType="text/html; charset=utf-8" language="java" import="java.sql.*" errorPage=""%>
<%@ include file="/interceptor.jsp"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%@page isELIgnored="false"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>异常订单列表</title>
<link href="css/style.css" rel="stylesheet" type="text/css" />

</head>
<body>
<div class="action">
	<div class="t">异常订单列表</div>
	<div class="pages">
		<table width="90%" border="1" cellpadding="0" cellspacing="0" style="border:thin solid #666; margin-top:20px">
			<tr>
				<th width="30%">订单ID</th>
				<th width="20%">下单人</th>
				<th width="15%">异常原因</th>
				<th width="20%">创建时间</th>
				<th width="10%">操作</th>
			</tr>
			<c:if test="${list!= null}">
				<c:forEach var="order" items="${list}">
					<tr>
						<td align="center">${order.orderId}</td>
						<td align="center">${order.patientName}</td>
						<td align="center">${order.reason}</td>
						<td align="center"><fmt:formatDate value="${order.createdTime }" pattern="yyyy-MM-dd" /></td>
						<td align="center">[<a href="javascript:delOrder(${order.id })" style="color:red">删除</a>]
						</td>
					</tr>
				</c:forEach>
			</c:if>
		</table>

	</div>
</div>
</body>
</html>